Quickstart Guide

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page







Preferred Partner Logo 3 Partner Program Banner




This wiki will show you how to quickly get started with GStreamer Browser Sink.


Installing Dependencies

Run the following command to make sure all the dependencies are installed:

sudo apt update
sudo apt install -y \
  libgstreamer1.0-dev \
  libsoup-3.0-dev \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad \
  gstreamer1.0-plugins-ugly \
  gstreamer1.0-libav \
  gstreamer1.0-nice \
  gstreamer1.0-tools gstreamer1.0-x \
  ninja-build build-essential
sudo -H pip install meson

Building the Project

Once you have dependencies installed, you can proceed to configure and build the project:

meson builddir 
ninja -C builddir

Running the Sample

Once you've built the project, you can run the example provided as follows.

1) Run the pipeline

gst-launch-1.0 autovideosrc ! videoconvert ! queue ! \
    x264enc speed-preset=ultrafast tune=zerolatency key-int-max=30 ! \
    h264parse ! rrbrowsersink serve-path=examples/simple/

2) Navigate to http://127.0.0.1:8888/

You should see the following output in your browser.

Expected output for simple example

If you encounter any errors, ensure that the page has the necessary permissions to access your devices.